package reflect;

import reflect.annotations.AutoRunClass;
import reflect.annotations.AutoRunMethod;

@AutoRunClass
// 注解可以用在任何关键点上(不能给语句加)   变量 类 方法 参数
public class Person
{
    private String name = "ss";
    private int age = 11;

    public Person()
    {
    }

    ;

    public Person(String name)
    {
        this.name = name;
    }

    ;

    public Person(String name, int age)
    {
        this.name = name;
        this.age = age;
    }
    public String getName()
    {
        return name;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public int getAge()
    {
        return age;
    }

    public void setAge(int age)
    {
        this.age = age;
    }

    @AutoRunMethod
    public void sayHello()
    {
        System.out.println(name + " hello");
    }

    @AutoRunMethod(3)
    public void sayHi()
    {
        System.out.println(name + " hi");
    }

    public void doSome()
    {
        System.out.println(name + " do some thing");
    }

    public void sleep()
    {
        System.out.println(name + " sleep ");
    }

    public void watchTV()
    {
        System.out.println(name + " watch TV");
    }

    public void study()
    {
        System.out.println(name + " study ");
    }

    @AutoRunMethod
    public void playGame()
    {
        System.out.println(name + "playGame");
    }

    public void sing()
    {
        System.out.println(name + " singing");
    }

    public void say()
    {
        System.out.println(name + "say something");
    }

    public void say(String info)
    {
        System.out.println(name + "  " + info);
    }

    public void say(String info, int count)
    {
        for (int i = 0; i < count; i++)
        {
            System.out.println(name + "   " + info);
        }
    }

    @Override
    public String toString()
    {
        return "name = " + name + " age = " + age;
    }

    public String getContent()
    {
        return "只因你太美 baby 只因你太美 baby\n" +
                "只因你实在是太美 baby 只因你太美 baby\n" +
                "迎面走来的你让我如此蠢蠢欲动\n" +
                "这种感觉我从未有\n" +
                "Cause I got a crush on you who you\n" +
                "你是我的我是你的谁\n" +
                "再多一眼看一眼就会爆炸\n" +
                "再近一点靠近点快被融化\n" +
                "想要把你占为己有baby bae\n" +
                "不管走到哪里都会想起的人是你 you you\n" +
                "我应该拿你怎样\n" +
                "uh 所有人都在看着你\n" +
                "我的心总是不安\n" +
                "oh 我现在已病入膏肓\n" +
                "eh eh 难道真的因为你而疯狂吗\n" +
                "我本来不是这种人\n" +
                "因你变成奇怪的人\n" +
                "第一次呀变成这样的我\n" +
                "不管我怎么去否认\n" +
                "只因你太美 baby 只因你太美 baby\n" +
                "只因你实在是太美 baby 只因你太美 baby\n" +
                "oh eh oh 现在确认地告诉我\n" +
                "oh eh oh 你到底属于谁\n" +
                "oh eh oh 现在确认地告诉我\n" +
                "oh eh oh 你到底属于谁 就是现在告诉我\n" +
                "跟着这节奏 缓缓 make wave\n" +
                "甜蜜的奶油 it's your birthday cake\n" +
                "男人们的 game call me 你恋人\n" +
                "别被欺骗愉快的 I wanna play\n" +
                "我的脑海每分每秒只为你一人沉醉\n" +
                "最迷人让我神魂颠倒是你身上香水\n" +
                "oh right baby I'm fall in love with you\n" +
                "我的一切你都拿走只要有你就已足够\n" +
                "我到底应该怎样\n" +
                "uh 我心里一直很不安\n" +
                "其他男人们的视线\n" +
                "Oh 全都只看向你的脸\n" +
                "Eh eh 难道真的因为你而疯狂吗\n" +
                "我本来不是这种人\n" +
                "因你变成奇怪的人\n" +
                "第一次呀变成这样的我\n" +
                "不管我怎么去否认\n" +
                "只因你太美 baby 只因你太美 baby\n" +
                "只因你实在是太美 baby 只因你太美 baby\n" +
                "我愿意把我的全部都给你\n" +
                "我每天在梦里都梦见你还有我闭着眼睛也能看到你\n" +
                "现在开始我只准你看我\n" +
                "I don’t wanna wake up in dream 我只想看你这是真心话\n" +
                "只因你太美 baby 只因你太美 baby\n" +
                "只因你实在是太美 baby 只因你太美 baby\n" +
                "oh eh oh 现在确认的告诉我\n" +
                "oh eh oh 你到底属于谁\n" +
                "oh eh oh 现在确认的告诉我\n" +
                "oh eh oh 你到底属于谁就是现在告诉我   ";
    }

    private void heHe()
    {
        System.out.println("this is Person's private method ");
    }
}
